<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			// 过期时间
			var now = new Date();
			// 3分钟之后过期
			now.setMinutes(now.getMinutes()+3);
			
			
			// 向浏览器中写入信息
			document.cookie = "username=zhangsan";
			document.cookie = "password=123456";
			document.cookie "age=18";
		</script>
	</body>
</html>
